We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analysing extension... Inspecting 141 files .........................................................................................................................E................... Offenses: [extension-name]/lib/gems/rubyzip/lib/zip/filesystem.rb:628:7: E: SketchupRequirements/RubyCoreNamespace: Do not modify Ruby core functionality. (https://github.com/SketchUp/rubocop-sketchup/tree/main/manual/cops_requirements.md#rubycorenamespace) include FileSystem ^^^^^^^ 141 files inspected, 1 offense detected
The vendored file looks roughly like this:
module ExtensionNamespace require 'zip' # ... module Zip module FileSystem # ... end class File include FileSystem end end end
The cop thinks that File is Ruby's own ::File class while in reality it's ExtensionNamespace::Zip::File.
File
::File
ExtensionNamespace::Zip::File
The text was updated successfully, but these errors were encountered:
This might not be a false positive after all. Need to check how Ruby resolves the File class.
Sorry, something went wrong.
No branches or pull requests
The vendored file looks roughly like this:
The cop thinks that
File
is Ruby's own::File
class while in reality it'sExtensionNamespace::Zip::File
.The text was updated successfully, but these errors were encountered: